﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SForce : SFuncBase
{
    [PureValueAtrribute]
    public float ForceAngle;
    [PureValueAtrribute]
    public float ForceStrength;


    public override void LocalKeyDown()
    {
        base.LocalKeyDown();

    }

    public override void LocalKeyUp()
    {
        base.LocalKeyUp();
    }
    public override void ServerKeyDown()
    {
        base.ServerKeyDown();
    }

    public override void LocalKeyOn()
    {

        base.LocalKeyOn();

        this.AddForceAtLocalPosition(Vector2.zero, ForceAngle, ForceStrength);
    }
}